import request from '@/utils/request'

// 物品申请列表
export function listAll(date) {
  return request({
    url: '/administration/goodsApply/listAll',
    method: 'post',
    data:date
  })
}

// 物品申请列表
export function saveGoodsApply(date) {
  return request({
    url: '/administration/goodsApply/saveGoodsApply',
    method: 'post',
    data:date
  })
}

// 修改申领物品的状态
export function updateAState(date) {
  return request({
    url: '/administration/goodsApply/updateAState',
    method: 'post',
    data:date
  })
}

// 修改借用申领物品updateGoodsApproval
export function updateGoodsApply(date) {
  return request({
    url: '/administration/goodsApply/updateGoodsApply',
    method: 'post',
    data:date
  })
}

// 修改审批的状态
export function updateGoodsApproval(date) {
  return request({
    url: '/administration/goodsApply/updateGoodsApproval',
    method: 'post',
    data:date
  })
}

//保存驳回信息
export function saveRejectGoodsApply(date) {
  return request({
    url: '/administration/goodsApply/saveRejectGoodsApply',
    method: 'post',
    data:date
  })
}

//保存驳回信息
export function goodsApprovalBatchPass(date) {
  return request({
    url: '/administration/goodsApply/goodsApprovalBatchPass',
    method: 'post',
    data:date
  })
}

